package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.YouthHope;
import com.dwxt.cdms.entity.YouthHopeExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YouthHopeMapper {
    int countByExample(YouthHopeExample example);

    int deleteByExample(YouthHopeExample example);

    int insert(YouthHope record);

    int insertSelective(YouthHope record);

    List<YouthHope> selectByExample(YouthHopeExample example);

    int updateByExampleSelective(@Param("record") YouthHope record, @Param("example") YouthHopeExample example);

    int updateByExample(@Param("record") YouthHope record, @Param("example") YouthHopeExample example);

    List<YouthHope> selectYoutHopePageGroup(String name, Integer stationId);

    List<YouthHope> selectPageByCustomerId(Integer customerId);

    YouthHope selectYoutHopeById(Integer id);

    YouthHope selectYoutHopeByCustomerIdAndTime(@Param("customerId")Integer customerId, @Param("dayTime") String dayTime);

    YouthHope selectNewDataByCustomerId(Integer customerId);
}